package com.ctshk.rpc.order.air.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalTime;

/**
 * <p>
 * 机票订单多程航班表
 * </p>
 *
 * @author lihang
 * @since 2021-04-01
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("t_air_order_flight")
@ApiModel(value="AirOrderFlight对象", description="机票订单多程航班表")
public class AirOrderFlight extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "所属订单")
    private Long orderId;

    @ApiModelProperty(value = "航班id")
    private Long flightId;

    @ApiModelProperty(value = "机票产品Id")
    private Long productId;

    @ApiModelProperty(value = "机票产品类型")
    private Integer productType;

    @ApiModelProperty(value = "起飞日期")
    private LocalDate date;

    @ApiModelProperty(value = "机票数量")
    private Integer number;

    @ApiModelProperty(value = "航空公司Id")
    private Long companyId;

    @ApiModelProperty(value = "航空公司名称")
    private String companyName;

    @ApiModelProperty(value = "第几程")
    private Integer tripRank;

    @ApiModelProperty(value = "航班号")
    private String flightNumber;

    @ApiModelProperty(value = "船舱等级")
    private Long cabinClass;

    @ApiModelProperty(value = "船舱等级名称")
    private String cabinName;

    @ApiModelProperty(value = "出发时间")
    private LocalTime depTime;

    @ApiModelProperty(value = "出发地id")
    private Long depCityId;

    @ApiModelProperty(value = "出发地名称")
    private String depCityName;

    @ApiModelProperty(value = "到达地id")
    private Long arrCityId;

    @ApiModelProperty(value = "到达地名称")
    private String arrCityName;

    @ApiModelProperty(value = "起飞机场id")
    private Long depAirportId;

    @ApiModelProperty(value = "起飞机场")
    private String depAirportName;

    @ApiModelProperty(value = "到达机场Id")
    private Long arrAirportId;

    @ApiModelProperty(value = "到达机场")
    private String arrAirportName;

    @ApiModelProperty(value = "到达时间")
    private LocalTime arrTime;

    @ApiModelProperty(value = "耗时")
    private String timeConsuming;

    @ApiModelProperty(value = "航班价格信息，对应旅客类型,JSON格式 对应 OrderFlightPriceData 对象")
    private String flightPrice;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;

    @ApiModelProperty(value = "供应商票号")
    private String supplierTicketNumber;

    @ApiModelProperty(value = "供应商票凭证")
    private String supplierTicketCertificate;
}
